import request from '@/utils/request'

//获取列表
export function getCarRuleListAPI(obj){
    return request({
        url:'/parking/rule/list',
        method:'GET',
        params:obj,
    })
}
export function getCarRuleDetailAPI(id){
    return request({
        url:'/parking/rule/'+id,
        method:'GET',
    })
}

//添加
export function addCarRuleListAPI(obj){
    return request({
        url:'/parking/rule',
        method:'POST',
        // data:obj,
        data:obj,
    })
}
//编辑
export function editCarRuleListAPI(obj){
    return request({
        url:'/parking/rule',
        method:'PUT',
        data:obj,
    })
}

//删除
export function delCarRuleListAPI(id){
    return request({
        url:'/parking/rule/'+id,
        method:'DELETE',
    })
}
